import { ref } from 'vue'
import { defineStore } from 'pinia'

export const useAdminStore = defineStore('admin', () => {
    // state
    const adminInfo = ref({})
    //获取admin信息
    const getAdminInfo = (admin) => { 
        console.log(admin)
        adminInfo.value = admin
        console.log(adminInfo.value);
    }
    return {
        getAdminInfo,
    }
})